<?php

$mzRoot = dirname(dirname(dirname(dirname(__FILE__)))) . '/public';
Yii::setPathOfAlias('mzRoot', $mzRoot);

return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'mysql-proxy',
    'preload' => array('log'),
    'import' => array(

    ),
    // application components
    'components' => array(
        'request' => array(
            'enableCsrfValidation' => false,
        ),
        'user' => array(
            'allowAutoLogin' => false,
        ),

        //URL重写
        'urlManager' => array(
            'urlFormat' => 'path',
            'showScriptName' => false,
            'urlSuffix' => '.html',
            'caseSensitive' => false,
            'rules' => array(

            ),
        ),
        //404页面
        'errorHandler' => array(
            'errorAction' => 'site/error',
        ),
        'OSSClient' => array(
            'class' => 'OSS'
        ),
        //记录
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'error, warning, info',
                ),
            ),
        ),
    ),
    'defaultController' => 'Home/index',

);